﻿@model _2._13._2015_VehiclesInClass.Models.CreateViewModel

@{
    ViewBag.Title = "CreateCar";
}

<h2>CreateCar</h2>

@using (Html.BeginForm("CreateCar", "Home", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
{
    <div>
        @Html.ValidationSummary(true)
    </div>
    <div class="form-group">
        @Html.LabelFor(m => m.Make, new { @class = "col-md-2 control-label" })
        <div class="col-md-10">
            @Html.TextBoxFor(m => m.Make, new { @class = "form-control" })
            <br />
            @Html.ValidationMessageFor(m => m.Make)
        </div>
    </div>
    <div class="form-group">
        @Html.LabelFor(m => m.Model1, new { @class = "col-md-2 control-label" })
        <div class="col-md-10">
            @Html.TextBoxFor(m => m.Model1, new { @class = "form-control" })
            <br />
            @Html.ValidationMessageFor(m => m.Model1)
        </div>
    </div>
    <div class="form-group">
        @Html.LabelFor(m => m.Year, new { @class = "col-md-2 control-label" })
        <div class="col-md-10">
            @Html.TextBoxFor(m => m.Year, new { @class = "form-control" })
            <br />
            @Html.ValidationMessageFor(m => m.Year)
        </div>
    </div>

    <div class="form-group">
        <div class="col-md-offset-2 col-md-10">
            <input type="submit" class="btn btn-default" value="OK" />
        </div>
    </div>
}

